import Vue from 'vue'
import VueApp from './App.vue'
import { createRouter } from './router'
import { createStore } from './store'

Vue.config.productionTip = false


export const createApp = () => {
  const router = createRouter()
  const store = createStore()

  const App = new Vue({
    router: router,
    store: store,
    render: h => h(VueApp)
  })

  return { App, router, store }
}